<?
/**
 * Timeline History Webapp
 */
require('./api/loader.php');
requireWebApp();

// User attempting to login or logout?
switch($_APP->html->getAction()) {
	case ACTION_LOGIN:
		die($_APP->login());
	break;
	case ACTION_LOGOUT:
		die($_APP->logout());
	case ACTION_PASSCHANGE:
		die($_APP->passchange());
	break;
	}

// Authentication required from here on out...
$_APP->authenticationRequired();

// handle applet requests
$_APP->loadRequestedApplets();

// Fall through to main menu
die(getPageMainMenu());
?>
